package date;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;

public class SimpleDateFormatText {
    public static void main(String[] args) {
        Scanner sc  =new Scanner(System.in);
        String str = "2000-11-11";

        try {
            Date date = new Date();
            long format = new SimpleDateFormat("yyyy-MM-dd").parse("2000-11-11").getTime();
            System.out.println(date);
        } catch (ParseException e) {
            throw new RuntimeException(e);
        }
    }

}
